package com.heze.xunhuan.dto;

import lombok.Data;

import jakarta.validation.constraints.NotBlank;

/**
 * 微信登录DTO
 *
 * @author heze-xunhuan
 */
@Data
public class WechatLoginDTO {

    /**
     * 微信登录code
     */
    @NotBlank(message = "code不能为空")
    private String code;

    /**
     * 用户信息
     */
    private UserInfo userInfo;

    @Data
    public static class UserInfo {
        private String nickName;
        private String avatarUrl;
        private Integer gender;
    }
}

